package com.guomao.filedemos;

import java.io.File;

public class FileDemoA {

    public static void main(String[] args) {


        //C:..........
        // /opt /usr
        File filea = new File("D://FileDemo");
        //file对象就代表FileDemo 该文件或文件夹未必存在 存在直接使用 不存在可以创建出来

        System.out.println(filea);
        File fileb = new File("D://guomaolesson");

        System.out.println(fileb);

        File filec = new File("FileDemoB");
        System.out.println(filec);

        File filed = new File("D://guomaolesson", "Java2025");
        File filee = new File("D://guomaolesson//Java2025");

        System.out.println(filed);
        System.out.println(filee);
        File parent = new File("D://guomaolesson");
        File child = new File(parent, "Java2025");

        System.out.println(child);
    }
}
